package calculator.operator;


public class MultiplyingOperator implements Operator {


    public double doCal(double num1, double num2) {
        return fix(num2).multiply(fix(num1)).doubleValue();
    }

    @Override
    public String toString() {
        return "×";
    }

    public int getPriority() {
        return Priority.PRIORITY_LOW;
    }

    @Override
    public boolean support(char c) {
        return c == '×';
    }
}
